﻿using M.AuditField;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace M_Purchase.Domain
{
    /// <summary>
    /// 采购管理
    /// </summary>
    [Table("Purch")]
    public class Purch: AuditFields
    {
        /// <summary>
        /// 采购管理ID
        /// </summary>
        [Key]
        public int PurchaseID {  get; set; }
        /// <summary>
        /// 入库编号(出库/入库/转库)
        /// </summary>
        public string? InventoryNo { get; set; }
        /// <summary>
        /// 入库状态
        /// </summary>
        public string? InventoryState { get; set; } = "待入库";
        /// <summary>
        /// 采购编号
        /// </summary>
        public string? PurchaseCode {  get; set; }
        /// <summary>
        /// 采购原料编号
        /// </summary>
        public string? Ingredientnumber { get; set; }
        /// <summary>
        /// 采购原料名称
        /// </summary>
        public string? IngredientName { get; set; }
        /// <summary>
        /// 采购原料数量
        /// </summary>
        public int? PurchaseNumber { get; set; }
        /// <summary>
        /// 采购原料型号
        /// </summary>
        public string? PurchaseSpecification { get; set; }
        /// <summary>
        /// 采购原料尺寸
        /// </summary>
        public string? PurchaseSize { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        public DateTime? PurchaseDate { get; set; }
        /// <summary>
        /// 采购预算
        /// </summary>
        public decimal? PurchaseBudget { get; set; }
        /// <summary>
        /// 采购批次号
        /// </summary>
        public string? PurchaseBatch { get; set; }
        /// <summary>
        /// 采购状态
        /// </summary>
        public string? PurchaseSart { get; set; } = "待采购";
        /// <summary>
        /// 实际采购价格
        /// </summary>
        public decimal? PurchaseSumMoney { get; set; }
        /// <summary>
        /// 采购单价
        /// </summary>
        public decimal? PurchasePrice { get; set; }
        /// <summary>
        /// 支付价格
        /// </summary>
        public string? PurchasePayPrice { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string? PayType { get; set; }
        /// <summary>
        /// 供应商ID
        /// </summary>
    
        public int? SupplierID { get; set; }

    }
}
